import Vue from "vue";
Vue.directive("hide", {
  inserted(el, bind) {
    if (bind.value) {
      el.style.display = "none";
    } else {
      el.style.display = "";
    }
  },
  update(el, bind) {
    if (bind.value) {
      el.style.display = "none";
    } else {
      el.style.display = "";
    }
  },
});
